
C=gcc
CXX=g++
OPENCL_INCLUDE_PATH=/usr/local/cuda/include
OPENCL_LINK_PATH=/usr/local/cuda/lib64

all:
	echo "Not finish yet"

pretask:
	mkdir -p build

native: pretask
	$(CXX) -fPIC -shared ./opencl/icl.cpp \
	  -I$(OPENCL_INCLUDE_PATH) -L$(OPENCL_LINK_PATH) -lOpenCL \
	  -o ./build/libicl.so
	echo "Built native CL library."

addon: native
	node-gyp configure
	node-gyp build
